jQuery.validator.addMethod("customDate", function(value, element,param) {
    return this.optional(element) || value.match(/^\d\d\d\d\-\d\d?\-\d?\d$/);},"请输入正确的日期格式(2010-10-31)");

jQuery.validator.addMethod("MMDDDate", function(value, element,param) {
    return this.optional(element) || value.match(/^\d\d?\-\d?\d$/);},"请输入正确的日期格式(10-31)");


